<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>cloneVnode</title>
</head>
<body>
  <div id="app"></div>
</body>
<script src="../lib/vue.global.js"></script>
<script>
  const { createApp, cloneVNode, h } = Vue

  const old = h('div')

  const cloned = cloneVNode(old, { id: 'box' })
  console.log('原始的', old)
  console.log('克隆的', cloned)

  // cloneVNode 不可以用来克隆组件，因为返回值不是一个组件
</script>
</html>